package com.polymorphic.demo01;

public class Fu {
    public  void  show(){

    }

}
class  Zi1 extends Fu{
public  void  show(){
    System.out.println("z1");
}
}
class  Zi2 extends Fu {
    public void show() {
        System.out.println("z2");
    }
}
class Test01{
    public   static void  t1(Fu f){

    }

    public static void main(String[] args) {
        Fu f = new Fu();
        Fu f1 = new Zi1();
        Fu f2 = new Zi2();
        Zi1 z1=new Zi1();
        t1(f);
        t1(f1);
        t1(f2);
        t1(z1);
    }
}